import type { LoginParams } from "@/types/user"
import { requestToAxios } from "@/utils/reuqest"

// 登录请求
 export const loginAPI = (data: LoginParams)=> {
  return requestToAxios<{token:string}>('/park/login','POST',data)
}